package com.benhil.hrms.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

import org.codehaus.jackson.annotate.JsonIgnoreType;

@JsonIgnoreType
@Entity(name = "role")
public class Role extends PersistentObject {
	
	@OneToOne
	private User user;
	@Column(nullable = false)
	private Integer role;
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Integer getRole() {
		return role;
	}
	public void setRole(Integer role) {
		this.role = role;
	}
	
}
